<template>
	<view class="balance">
		<u-navbar :autoBack="true"  leftIconColor="#fff" title="明细" :bgColor="theme == 'light' ? '#0071ff' : '#2c2c2c'"
			:safeAreaInsetTop="true" :placeholder="true" titleStyle="color:#fff">
		</u-navbar>



		<view class="top">
			<view class="header">
				<view class="num">
					<view>余额</view>
					<view>￥0</view>
				</view>
				<u-line direction="col" length=100rpx></u-line>
				<view class="num">
					<view>分佣</view>
					<view>￥0</view>
				</view>
			</view>
			<view class="buttom">
				<u-button type="primary " plain text="提现"></u-button>
			</view>
		</view>

		<view class="main">
			<u-subsection activeColor="#f56c6c" @change="sectionChange" :list="list" :current="current"></u-subsection>
		</view>

		<view class="list">
			<!-- <u-list @scrolltolower="scrolltolower">
				<u-list-item v-for="(item, index) in urls" :key="index">
					<u-cell :title="`充值金额 ￥${index + 1}`">
						<u-avatar slot="icon" shape="square" size="35" :src="item.url"
							customStyle="margin: -3px 5px -3px 0"></u-avatar>
					</u-cell>
				</u-list-item>
			</u-list> -->
		</view>




	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'

	export default {
		data() {
			return {
				list: ['充值', '提现', '分佣'],
				// 或者如下，也可以配置keyName参数修改对象键名
				current: 0,
				urls: [
					{
						url:require('../../static/balance.png'),
					},
					{
						url:require('../../static/balance.png'),
					},
					{
						url:require('../../static/balance.png'),
					},
					
				]
			}
		},
		computed: {
			...mapState(['theme', ])

		},
		onLoad() {
			
		},
		methods: {
			scrolltolower() {
				console.log("ooo")
			},
			
			sectionChange(index) {
				this.current = index;
			}
		}

	};
</script>

<style lang="scss" scoped>
	.balance {
		.top {
			background-color: #0375ff;
			margin: 40rpx;
			border-radius: 20rpx;

			.header {
				height: 250rpx;
				color: white;
				display: flex;
				justify-content: space-evenly;
				align-items: center;

				.num {
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: space-around;
					height: 120rpx;
				}
			}

			.buttom {}

		}

		.main {
			margin: 40rpx;
		}
		.list{
			margin: 40rpx;
		}

	}
</style>